跳到主要内容

vs code 快捷键

  • option + ↑/↓:把鼠标所在的这一行代码向上/向下移动
  • option + shift + ↑/↓:把鼠标所在的这一行代码复制到下一行
  • option + ←/→:把鼠标向前/向后移动一个单词
  • command + ↑/↓:把鼠标移动到文档的最顶部/最底部
  • fn + ↑/↓:把鼠标移动到文档的上一页/下一页
  • option + delete: 向前删除一个单词
  • command + delete:向前删除一整行
  • shift + command + ←/→:从鼠标位置向前/向后选中一整行内容
  • shift + ↑/↓:选中多行内容
  • option + 鼠标点击:将鼠标插入至多个不同行/不同列的位置
  • ctrl + l:复制行号 来自Copy Relative Path and Line Numbers插件